package br.com.ac.fatureweb.model.billing;

import br.com.ac.fatureweb.utilitary.Model;

public class LogCorrecaoConta extends Model {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6814807732994230122L;

	private Long id;

	private Long inscricao;

	private Long idCarga;

	private Long idSupervisor;

	private Long idLeiturista;

	private Long competencia;

	private String codigoBarra;

	private Double valorAgua;

	private Double valorEsgoto;

	private Double valorConta;

	private Long leitura;

	private Long codOcorrencia1;

	private Long codOcorrencia2;

	private Long consumoAgua;

	private Long consumoEsgoto;

	private Long qtdeImpressao;

	private Integer tipoRetencao;

	private Long dataCadastro;

	public LogCorrecaoConta(Long id, Long inscricao, Long idCarga,
			Long idSupervisor, Long idLeiturista, Long competencia,
			String codigoBarra, Double valorAgua, Double valorEsgoto,
			Double valorConta, Long leitura, Long codOcorrencia1,
			Long codOcorrencia2, Long consumoAgua, Long consumoEsgoto,
			Long qtdeImpressao, Integer tipoRetencao, Long dataCadastro) {
		super();
		this.id = id;
		this.inscricao = inscricao;
		this.idCarga = idCarga;
		this.idSupervisor = idSupervisor;
		this.idLeiturista = idLeiturista;
		this.competencia = competencia;
		this.codigoBarra = codigoBarra;
		this.valorAgua = valorAgua;
		this.valorEsgoto = valorEsgoto;
		this.valorConta = valorConta;
		this.leitura = leitura;
		this.codOcorrencia1 = codOcorrencia1;
		this.codOcorrencia2 = codOcorrencia2;
		this.consumoAgua = consumoAgua;
		this.consumoEsgoto = consumoEsgoto;
		this.qtdeImpressao = qtdeImpressao;
		this.tipoRetencao = tipoRetencao;
		this.dataCadastro = dataCadastro;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the inscricao
	 */
	public Long getInscricao() {
		return inscricao;
	}

	/**
	 * @param inscricao
	 *            the inscricao to set
	 */
	public void setInscricao(Long inscricao) {
		this.inscricao = inscricao;
	}

	/**
	 * @return the idCarga
	 */
	public Long getIdCarga() {
		return idCarga;
	}

	/**
	 * @param idCarga
	 *            the idCarga to set
	 */
	public void setIdCarga(Long idCarga) {
		this.idCarga = idCarga;
	}

	/**
	 * @return the idSupervisor
	 */
	public Long getIdSupervisor() {
		return idSupervisor;
	}

	/**
	 * @param idSupervisor
	 *            the idSupervisor to set
	 */
	public void setIdSupervisor(Long idSupervisor) {
		this.idSupervisor = idSupervisor;
	}

	/**
	 * @return the idLeiturista
	 */
	public Long getIdLeiturista() {
		return idLeiturista;
	}

	/**
	 * @param idLeiturista
	 *            the idLeiturista to set
	 */
	public void setIdLeiturista(Long idLeiturista) {
		this.idLeiturista = idLeiturista;
	}

	/**
	 * @return the competencia
	 */
	public Long getCompetencia() {
		return competencia;
	}

	/**
	 * @param competencia
	 *            the competencia to set
	 */
	public void setCompetencia(Long competencia) {
		this.competencia = competencia;
	}

	/**
	 * @return the codigoBarra
	 */
	public String getCodigoBarra() {
		return codigoBarra;
	}

	/**
	 * @param codigoBarra
	 *            the codigoBarra to set
	 */
	public void setCodigoBarra(String codigoBarra) {
		this.codigoBarra = codigoBarra;
	}

	/**
	 * @return the valorAgua
	 */
	public Double getValorAgua() {
		return valorAgua;
	}

	/**
	 * @param valorAgua
	 *            the valorAgua to set
	 */
	public void setValorAgua(Double valorAgua) {
		this.valorAgua = valorAgua;
	}

	/**
	 * @return the valorEsgoto
	 */
	public Double getValorEsgoto() {
		return valorEsgoto;
	}

	/**
	 * @param valorEsgoto
	 *            the valorEsgoto to set
	 */
	public void setValorEsgoto(Double valorEsgoto) {
		this.valorEsgoto = valorEsgoto;
	}

	/**
	 * @return the valorConta
	 */
	public Double getValorConta() {
		return valorConta;
	}

	/**
	 * @param valorConta
	 *            the valorConta to set
	 */
	public void setValorConta(Double valorConta) {
		this.valorConta = valorConta;
	}

	/**
	 * @return the leitura
	 */
	public Long getLeitura() {
		return leitura;
	}

	/**
	 * @param leitura
	 *            the leitura to set
	 */
	public void setLeitura(Long leitura) {
		this.leitura = leitura;
	}

	/**
	 * @return the codOcorrencia1
	 */
	public Long getCodOcorrencia1() {
		return codOcorrencia1;
	}

	/**
	 * @param codOcorrencia1
	 *            the codOcorrencia1 to set
	 */
	public void setCodOcorrencia1(Long codOcorrencia1) {
		this.codOcorrencia1 = codOcorrencia1;
	}

	/**
	 * @return the codOcorrencia2
	 */
	public Long getCodOcorrencia2() {
		return codOcorrencia2;
	}

	/**
	 * @param codOcorrencia2
	 *            the codOcorrencia2 to set
	 */
	public void setCodOcorrencia2(Long codOcorrencia2) {
		this.codOcorrencia2 = codOcorrencia2;
	}

	/**
	 * @return the consumoAgua
	 */
	public Long getConsumoAgua() {
		return consumoAgua;
	}

	/**
	 * @param consumoAgua
	 *            the consumoAgua to set
	 */
	public void setConsumoAgua(Long consumoAgua) {
		this.consumoAgua = consumoAgua;
	}

	/**
	 * @return the consumoEsgoto
	 */
	public Long getConsumoEsgoto() {
		return consumoEsgoto;
	}

	/**
	 * @param consumoEsgoto
	 *            the consumoEsgoto to set
	 */
	public void setConsumoEsgoto(Long consumoEsgoto) {
		this.consumoEsgoto = consumoEsgoto;
	}

	/**
	 * @return the qtdeImpressao
	 */
	public Long getQtdeImpressao() {
		return qtdeImpressao;
	}

	/**
	 * @param qtdeImpressao
	 *            the qtdeImpressao to set
	 */
	public void setQtdeImpressao(Long qtdeImpressao) {
		this.qtdeImpressao = qtdeImpressao;
	}

	/**
	 * @return the tipoRetencao
	 */
	public Integer getTipoRetencao() {
		return tipoRetencao;
	}

	/**
	 * @param tipoRetencao
	 *            the tipoRetencao to set
	 */
	public void setTipoRetencao(Integer tipoRetencao) {
		this.tipoRetencao = tipoRetencao;
	}

	/**
	 * @return the dataCadastro
	 */
	public Long getDataCadastro() {
		return dataCadastro;
	}

	/**
	 * @param dataCadastro
	 *            the dataCadastro to set
	 */
	public void setDataCadastro(Long dataCadastro) {
		this.dataCadastro = dataCadastro;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((idCarga == null) ? 0 : idCarga.hashCode());
		result = prime * result
				+ ((inscricao == null) ? 0 : inscricao.hashCode());
		return result;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof LogCorrecaoConta)) {
			return false;
		}
		LogCorrecaoConta other = (LogCorrecaoConta) obj;
		if (id == null) {
			if (other.id != null) {
				return false;
			}
		} else if (!id.equals(other.id)) {
			return false;
		}
		if (idCarga == null) {
			if (other.idCarga != null) {
				return false;
			}
		} else if (!idCarga.equals(other.idCarga)) {
			return false;
		}
		if (inscricao == null) {
			if (other.inscricao != null) {
				return false;
			}
		} else if (!inscricao.equals(other.inscricao)) {
			return false;
		}
		return true;
	}

}
